package com.damieoa.damieoa.service;

import com.damieoa.damieoa.pojo.Department;
import com.damieoa.damieoa.pojo.Staff;

import java.util.List;

public interface DepartmentService {
    //新建部门
    void addDepartment(Department department);

    //查询部门
    List<Department> queryDepartment( Department department);

    //根据部门id获取部门信息
    Department getDepartmentById(Department department);

    //修改部门信息
    void updateDepartment(Department department);

    //删除部门
    void deleteDepartment(Department department);

    //查询部门员工
    List<Staff> queryDepartmentStaff(Department department);

    //查询部门删除员工
    void deleteDepartmentStaff(Staff staff);
}
